package com.cesgroup.zw.spring.boot.library.echarts.barAndPie.simple;

import com.cesgroup.zw.spring.boot.charts.model.IChartsParam;
import com.cesgroup.zw.spring.boot.charts.model.IComponent;
import lombok.Builder;
import lombok.Data;

import java.util.Map;

/**
 * @author ytj
 * @date 2019/7/8 14:11
 */
@SuppressWarnings("serial")
@Builder
@Data
public class BarAndPieSimpleParam implements IChartsParam<IComponent,Map<Object,Object[]>> {
    private Map<Object,Object[]> dataset;

    @Override
    public IComponent[] getSeries() {
        return new IComponent[]{new BarSimpleSeries(this,"衬衫"),
                new BarSimpleSeries(this,"羊毛衫"),
                new BarSimpleSeries(this,"雪纺衫"),
                new BarSimpleSeries(this,"裤子"),
                new BarSimpleSeries(this,"高跟鞋"),
                new BarSimpleSeries(this,"袜子"),
                new PieSimpleSeries(this)
        };
    }
}
